package ee.az.geometry;

/**
 * @author Artur Zinatullin (artur.zinatullin@gmail.com) 2010
 */
public class Pseudographicator {
	//                                0 12345 678
	private static char[] rayChars = "-\\|/-\\|/-".toCharArray();
	
	public static char getRayChar(double angle) {
		int i = (int)((angle + (Math.PI/8)*Math.signum(angle)) / (Math.PI/4));
		i = (i % 4) + 4;
		return rayChars[i];
	}
}
